﻿using Core.UI;
using Core.UI.UISub;
using UnityEngine.UI;

namespace Game.UI.Example
{
    public class TipsWindow : UIPopupWinBase
    {
        public Button confirmBtn;
        public Button cancelBtn;

        protected override void Awake()
        {
            base.Awake();
            
            confirmBtn.onClick.AddListener(OnClickConfirm);
            cancelBtn.onClick.AddListener(OnClickCancel);
        }

        private void OnClickCancel()
        {
            UIManager.Ins.HideTopUI();
        }

        private void OnClickConfirm()
        {
            UIManager.Ins.HideTopUI();
        }
    }
}